package com.leen.video.entity;


import com.alibaba.fastjson.annotation.JSONField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;


import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 本地存储
 * </p>
 *
 * @author 狂神说
 * @since 2021-05-19
 */
@Getter
@Setter
@Entity
@Table(name = "local_storage")
@ApiModel(value="LocalStorage对象", description="本地存储")
public class LocalStorage implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Column(name = "id")
    private Long id;

    @ApiModelProperty(value = "文件真实的名称")
    @Column(name = "real_name")
    private String realName;

    @ApiModelProperty(value = "文件名")
    @Column(name = "name")
    private String name;

    @ApiModelProperty(value = "后缀")
    @Column(name = "suffix")
    private String suffix;

    @ApiModelProperty(value = "路径")
    @Column(name = "path")
    private String path;

    @ApiModelProperty(value = "类型")
    @Column(name = "type")
    private String type;

    @ApiModelProperty(value = "大小")
    @Column(name = "size")
    private String size;

    @ApiModelProperty(value = "操作人")
    @Column(name = "operate")
    private String operate;


    @JSONField(format = "yyyy-MM-dd HH:mm")
    @ApiModelProperty(value = "创建日期")
    @Column(name = "create_time")
    private Date createTime;


}
